package com.aos.erp.manager.remote.sys;

import com.aos.erp.common.bean.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: erp
 * @description: 同步应用
 * @author: tanzhiyu
 * @create: 2018-11-22 19:57
 **/
@FeignClient(name = "${PERMISSION-SERVICE}"/*, url = "${PERMISSION-SERVICE-URL}"*/)
public interface ApplicationService {
    /**
     * 根据code查看应用详情
     *
     * @param code
     * @return
     */
    @GetMapping(value = "/application/queryByCode")
    ResultBean queryByCode(@RequestParam("code") String code);
}
